package com.apac.bom;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the user_tbl database table.
 * 
 */
@Entity
@Table(name="user_tbl")
public class User extends AbstractBOM implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="USER_ID_CODE")
	private int userIdCode;

	@Column(name="USER_DEPT")
	private String userDept;

	@Column(name="USER_FRST_NAME")
	private String userFrstName;

	@Column(name="USER_LST_NAME")
	private String userLstName;

	@Column(name="USER_NAME")
	private String userName;

	@Column(name="USER_PWD")
	private String userPwd;

	@Column(name="USER_TYPE")
	private String userType;

	//bi-directional many-to-one association to AccountPrivilege
	@OneToMany(mappedBy="user")
	private List<AccountPrivilege> accountPrivileges;

	//bi-directional many-to-one association to Employee
	@OneToMany(mappedBy="user")
	private List<Employee> employees;

	//bi-directional many-to-one association to UserAuditTrail
	@OneToMany(mappedBy="use")
	private List<UserAuditTrail> userAuditTrails;

	public User() {
	}

	public int getUserIdCode() {
		return this.userIdCode;
	}

	public void setUserIdCode(int userIdCode) {
		this.userIdCode = userIdCode;
	}

	public String getUserDept() {
		return this.userDept;
	}

	public void setUserDept(String userDept) {
		this.userDept = userDept;
	}

	public String getUserFrstName() {
		return this.userFrstName;
	}

	public void setUserFrstName(String userFrstName) {
		this.userFrstName = userFrstName;
	}

	public String getUserLstName() {
		return this.userLstName;
	}

	public void setUserLstName(String userLstName) {
		this.userLstName = userLstName;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPwd() {
		return this.userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	public String getUserType() {
		return this.userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public List<AccountPrivilege> getAccountPrivileges() {
		return this.accountPrivileges;
	}

	public void setAccountPrivileges(List<AccountPrivilege> accountPrivileges) {
		this.accountPrivileges = accountPrivileges;
	}

	public List<Employee> getEmployees() {
		return this.employees;
	}

	public void setEmployees(List<Employee> employees) {
		this.employees = employees;
	}

	public List<UserAuditTrail> getUserAuditTrails() {
		return this.userAuditTrails;
	}

	public void setUserAuditTrails(List<UserAuditTrail> userAuditTrails) {
		this.userAuditTrails = userAuditTrails;
	}

}